package com.jcp.serviceimp;

import java.util.List;

import com.jcp.dao.AttencesDao;
import com.jcp.daoimp.AttencesDaoImp;
import com.jcp.entity.Attences;
import com.jcp.entity.OverTime;
import com.jcp.service.AttencesService;
import com.jcp.util.PageData;

public class AttencesServiceImp implements AttencesService {

	AttencesDaoImp attencesDaoImp = new AttencesDaoImp();

	@Override

	public PageData<Attences> selAttenceByUserIdByPage(int page, int pageSize, int userId) {

		// TODO Auto-generated method stub
		return attencesDaoImp.selAttenceByUserIdByPage(page, pageSize, userId);


	}


	// 戴布斯：插入打卡记录用
	@Override
	public boolean insertClock(Attences attences) {
		// TODO Auto-generated method stub
		return attencesDaoImp.insertClock(attences);
	}

	@Override
	public int clockNum(int userId) {
		// TODO Auto-generated method stub
		return attencesDaoImp.clockNum(userId);

	}

	@Override
	public List<OverTime> selOverTime() {
		// TODO Auto-generated method stub
		return attencesDaoImp.selOverTime();
	}
	

	@Override
	public List<Attences> attencessel1() {
		// TODO Auto-generated method stub
		AttencesDao ad = new AttencesDaoImp();
		return ad.WeekSel1();
	}

	@Override
	public List<Attences> attencessel2() {
		// TODO Auto-generated method stub
		AttencesDao ad = new AttencesDaoImp();
		return ad.WeekSel2();
	}

	@Override
	public List<Attences> attencessel3() {
		// TODO Auto-generated method stub
		AttencesDao ad = new AttencesDaoImp();
		return ad.WeekSel3();
	}

	@Override
	public List<Attences> attencessel4() {
		// TODO Auto-generated method stub
		AttencesDao ad = new AttencesDaoImp();
		return ad.WeekSel0();
	}

	@Override
	public List<Attences> Weekchidao1() {
		// TODO Auto-generated method stub
		AttencesDao ad = new AttencesDaoImp();
		return  ad.Weekchidao1();
	}

	@Override
	public List<Attences> Weekzaotui1() {
		// TODO Auto-generated method stub
		AttencesDao ad = new AttencesDaoImp();
		return  ad.Weekzaotui1();
	}

	@Override
	public List<Attences> Weekjiaban1() {
		// TODO Auto-generated method stub
		AttencesDao ad = new AttencesDaoImp();
		return  ad.Weekjiaban1();
	}

	@Override
	public List<Attences> Weekjiatime1() {
		// TODO Auto-generated method stub
		AttencesDao ad = new AttencesDaoImp();
		return  ad.Weekjiatime1();
	}

	@Override
	public List<Attences> Weekzhengchang() {
		AttencesDao ad = new AttencesDaoImp();
		return  ad.Weekzhangchang1();
	}
	
	
	
	
}
